package com.sright.bcard.component.biz.service;

import com.sright.bcard.common.service.share.dto.component.ComponentCufaceMaterialConfigComponentDTO;
import com.sright.bcard.component.biz.manager.ComponentCufaceMaterialConfigComponentManager;
import com.sright.bcard.component.share.service.ComponentCufaceMaterialConfigComponentService;
import com.sright.common.response.SrightResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ComponentCufaceMaterialConfigComponentServiceImpl implements ComponentCufaceMaterialConfigComponentService {

    @Autowired
    private ComponentCufaceMaterialConfigComponentManager componentCufaceMaterialConfigComponentManager;

    @Override
    public SrightResponse<Long> addOrModify(ComponentCufaceMaterialConfigComponentDTO componentCufaceMaterialConfigComponentDTO) {
        return SrightResponse.defaultSuccess(componentCufaceMaterialConfigComponentManager.addOrModify(componentCufaceMaterialConfigComponentDTO));
    }
}
